<template>
    <div>
        <button @click="remove(item.id)">删除</button>
    </div>
</template>

<script>
export default {
    name: 'Todoremove',

    data() {
        return {
            
        };
    },
props:["item"],
    mounted() {
        
    },

    methods: {
        remove(id){
            this.$emit('todoRemove', id);
        }
    },
};
</script>

<style scoped>

</style>